<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>极致果蔬</title>
</head>
<body>
    {{ msg|safe }}      {#      {{ location }}#}
    <script type="text/javascript">
        var url = "{{ location }}"
        var secondsSpan = document.getElementById('seconds')
        var seconds = parseInt(secondsSpan.innerText)

        var countDown = setInterval(function (){
            if (seconds > 1)
            {
                seconds--;
                secondsSpan.innerText = seconds;
            }
            else
            {
                location.href = url
                clearInterval(countDown)
            }
        },1000)
    </script>
</body>
</html>